package pl.chopin.model;

import java.util.List;

/** Mozliwe zagle, do zdefiniowania w xml'u.
 * @author Pawel
 *
 */
public class Sail {
	private String id;
	private String name;

	private Line leftDewline;
	private Line rightDewline;

	private List<Line> leftBuntlines;
	private List<Line> rightBuntlines;

	private Line leftBrace;
	private Line rightBrace;

	private Line leftSheet;
	private Line rightSheet;

	private Line leftTackline;
	private Line rightTackline;

	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public Line getLeftDewline() {
		return leftDewline;
	}
	public void setLeftDewline(Line leftDewline) {
		this.leftDewline = leftDewline;
	}
	public Line getRightDewline() {
		return rightDewline;
	}
	public void setRightDewline(Line rightDewline) {
		this.rightDewline = rightDewline;
	}
	public List<Line> getLeftBuntlines() {
		return leftBuntlines;
	}
	public void setLeftBuntlines(List<Line> leftBuntlines) {
		this.leftBuntlines = leftBuntlines;
	}
	public List<Line> getRightBuntlines() {
		return rightBuntlines;
	}
	public void setRightBuntlines(List<Line> rightBuntlines) {
		this.rightBuntlines = rightBuntlines;
	}
	public Line getLeftBrace() {
		return leftBrace;
	}
	public void setLeftBrace(Line leftBrace) {
		this.leftBrace = leftBrace;
	}
	public Line getRightBrace() {
		return rightBrace;
	}
	public void setRightBrace(Line rightBrace) {
		this.rightBrace = rightBrace;
	}
	public Line getLeftSheet() {
		return leftSheet;
	}
	public void setLeftSheet(Line leftSheet) {
		this.leftSheet = leftSheet;
	}
	public Line getRightSheet() {
		return rightSheet;
	}
	public void setRightSheet(Line rightSheet) {
		this.rightSheet = rightSheet;
	}
	public Line getLeftTackline() {
		return leftTackline;
	}
	public void setLeftTackline(Line leftTackline) {
		this.leftTackline = leftTackline;
	}
	public Line getRightTackline() {
		return rightTackline;
	}
	public void setRightTackline(Line rightTackline) {
		this.rightTackline = rightTackline;
	}

	public String toString()
	{
		String toReturn = "";
		toReturn += "Sail: id(" + this.id +  ") name(" + this.name + ")";
		if(this.getLeftBrace()!=null) toReturn += " leftBrace("+this.getLeftBrace().toString()+")";
		if(this.getRightBrace()!=null) toReturn += " rightBrace("+this.getRightBrace().toString()+")";
		return toReturn;
	}
}
